load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "gen-parquet_lib",
    srcs = ["main.go"],
    importpath = "github.com/pingcap/tidb/tools/gen-parquet",
    visibility = ["//visibility:private"],
    deps = [
        "@com_github_xitongsys_parquet_go//writer",
        "@com_github_xitongsys_parquet_go_source//local",
    ],
)

go_binary(
    name = "gen-parquet",
    embed = [":gen-parquet_lib"],
    visibility = ["//visibility:public"],
)
